package com.ArrayList;

import com.itheima4.Array;

import java.util.Arrays;

public class Intertest {
    public static void main(String[] args) {
        String s = "12 10 65 70 10 45";


        String[] s1 = s.split(" ");
        int arr[]= new int[s1.length];



        for (int i = 0; i <s1.length;i++){
            arr[i]=Integer.parseInt(s1[i]);
        }

        Arrays.sort(arr);

        //StrinfBuilder 定义为int类型
        StringBuilder sb = new StringBuilder();
        for(int j=0;j< s1.length;j++){
            if(j== s1.length)
               sb.append(arr[j]);
            else{
                sb.append(arr[j]+" ");
            }

        }


        //在此处转化数据类型
        String ss=sb.toString();
        System.out.println(ss);
    }
}
